home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / AMOSList / AMOSLIST.0997 / 000149_amos-request@svcs1.digex.net_Tue Sep 16 19:12:05 1997.msg < prev    next >
Text File  |  1997-10-01  |  3KB  |  62 lines

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail3.access.digex.net (8.8.5/8.8.5) with ESMTP id TAA07100
  3.     for <mcox@access.digex.net>; Tue, 16 Sep 1997 19:12:03 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id PAA22484
  6.     for amos-out; Tue, 16 Sep 1997 15:11:28 -0400 (EDT)
  7. Received: from mail3.access.digex.net (mail3.access.digex.net [205.197.247.4])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id PAA22481
  9.     for <amos-list@svcs1.digex.net>; Tue, 16 Sep 1997 15:11:27 -0400 (EDT)
  10. Received: from punt-1.mail.demon.net (punt-1a.mail.demon.net [194.217.242.134])
  11.     by mail3.access.digex.net (8.8.5/8.8.5) with SMTP id PAA08693
  12.     for <amos-list@access.digex.net>; Tue, 16 Sep 1997 15:11:24 -0400 (EDT)
  13. Received: from scaryred.demon.co.uk ([193.237.4.140]) by punt-1.mail.demon.net
  14.            id ab0919208; 16 Sep 97 19:42 BST
  15. From: Carl Drinkwater <carl@scaryred.demon.co.uk>
  16. To: amos-list@access.digex.net
  17. Date: Tue, 16 Sep 1997 16:34:33 -0000
  18. Message-ID: <yam7198.1664.2015047576@post.demon.co.uk>
  19. In-Reply-To: <3.0.1.32.19970916090130.007944d0@mail.seta.it>
  20. X-Mailer: YAM 1.3.4 [020] - Amiga Mailer by Marcel Beck
  21. Organization: Scary Red Demon Software
  22. Subject: Re: AGA
  23. MIME-Version: 1.0
  24. Content-Type: text/plain
  25. Status: O
  26. X-Status: 
  27.  
  28. Hello!
  29.  
  30. > The best way to deal with sin & cos is to build a precalculated table and
  31. > store the values of the curve into an array.
  32. > I wrote a little demo using real time wire frame rotation solid  some years
  33. > ago, i'll e-mail you the source if i can remember where #*?) i put it...
  34.  
  35. The major way of gaining speed is not to use floating point arithmetic ...
  36.  
  37. For example ...
  38.  
  39. For G=0 To 359
  40.    MYCOS(G)=Cos(G)*256
  41.    MYSIN(G)=Sin(G)*256
  42. Next
  43.  
  44. Now when using MYCOS(), just divide everything by 256 ...
  45.  
  46. For G=0 To 359
  47.    Plot 160+(MYCOS(G)*100/256),128+(MYSIN(G)*100/256)
  48. Next
  49.  
  50. Which draws (Hopefully!) a 100 radius circle!
  51.  
  52. Carl.
  53.  
  54. ============================================================================
  55.   I don't care who you are, you aren't walking on water when I'm fishing!
  56. ============================================================================
  57.    Carl Drinkwater - carl@scaryred.demon.co.uk (Scary Red Demon Software)
  58.  
  59. Look at http://www.scaryred.demon.co.uk/ for details of our latest projects
  60.            or if you are interested in becoming involved with us.
  61. ============================================================================ 
  62.